//
// Created by grg on 2020/8/4.
// Copyright (c) 2020 龚任根. All rights reserved.
//

#ifndef TEST_CPP_PROJECT_IMAGECOMPONENT_H
#define TEST_CPP_PROJECT_IMAGECOMPONENT_H

#include "SDL2_image/SDL_image.h"

/**
 * 封装 图片 组件
 */
class ImageComponent {
public:
    ImageComponent() {
        //IMG_InitFlags
        IMG_Init(IMG_INIT_PNG | IMG_INIT_JPG);
    }
    ~ImageComponent(){
        IMG_Quit();
    }

};


#endif //TEST_CPP_PROJECT_IMAGECOMPONENT_H
